const express = require("express");
const app = express();

app.use("/public", express.static(__dirname + "/public"));

app.get("/", (req, res) => {
  console.log(req.query);
  res.send("Hello World");
});

app.get("/about", (req, res) => {
  console.log(req.query);
  res.send("About Page");
});

app.get("/user/:id/:name", (req, res) => {
  res.send(`User ID: ${req.params.id},User Name: ${req.params.name}`);
});

app.listen(3000, () => {
  console.log("Server is running on port 3000");
});
